import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class IconTextButton extends StatelessWidget {
  final Icon icon;
  final Text text;
  final VoidCallback onPressed;

  const IconTextButton(
      {Key? key,
      required this.icon,
      required this.text,
      required this.onPressed})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ElevatedButton.icon(
      icon: icon,
      label: text,
      onPressed: onPressed,
    );
  }
}
